//
//  UIView+showToast.m
//  Recycling
//
//  Created by jzd on 2018/5/18.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "UIView+showToast.h"
#import <Toast.h>

@implementation UIView (showToast)
-(void)showToast:(NSString *)toast completion:(void(^)(BOOL didTap))completion{
    CGFloat bottomH = iphoneX?83:49;
    [self makeToast:toast duration:1.0 position:[NSValue valueWithCGPoint:CGPointMake(SJScreenW*0.5, self.height-bottomH-50)] title:nil image:nil style:nil completion:completion];
}
@end
